package com.hotel.tv.application.admin.dto.emp;

import com.autumn.application.dto.EntityDto;
import com.autumn.validation.annotation.NotNullOrBlank;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-04-08 16:18
 **/
@Getter
@Setter
public class EmpInfoDto extends EntityDto<Long> {

    /**
     * 员工编号
     */
    @ApiModelProperty(value = "员工编号")
    @NotNullOrBlank(message = "员工编号不能为空")
    private String empCode;

    /**
     * 员工名称
     */
    @ApiModelProperty(value = "员工名称")
    @NotNullOrBlank(message = "员工名称不能为空")
    private String empName;

    /**
     * 职务id
     */
    @ApiModelProperty(value = "职务id，字典=10")
    @NotNull(message = "职务id不能为空")
    private Long postId;

    /**
     * 岗位id
     */
    @ApiModelProperty(value = "岗位id，字典=20")
    @NotNull(message = "岗位id不能为空")
    private Long roleId;

}
